package com.byq.mm.smartlib.engine;


import android.content.Context;
import com.byq.mm.smartlib.R;
import com.byq.mm.common.engine.Contact;


public class PresenceMap {
	public PresenceMap(Context ctx) {
		super();
		this.ctx = ctx;
		typeNames = new String[types.length];
		modeNames = new String[modes.length];
		for(int i = 0; i < typeRes.length; i++)
			typeNames[i] = ctx.getResources().getString(typeRes[i]);
		for(int i = 0; i < modeRes.length; i++)
			modeNames[i] = ctx.getResources().getString(modeRes[i]);
		
	}
	static public Contact.Type[] types = new Contact.Type[]{Contact.Type.available,Contact.Type.unavailable,Contact.Type.subscribe,Contact.Type.unsubscribe,Contact.Type.subscribed,Contact.Type.unsubscribed};
	static public Contact.Mode[] modes = new Contact.Mode[]{Contact.Mode.available,Contact.Mode.chat,Contact.Mode.away,Contact.Mode.xa,Contact.Mode.dnd};
	static public int[] modeRes = new int[]{R.string.mode_available,R.string.mode_chat,R.string.mode_away,R.string.mode_xa,R.string.mode_dnd};
	static public int[] typeRes = new int[]{R.string.type_available,R.string.type_unavailable,R.string.type_subscribe,R.string.type_unsubscribe,R.string.type_subscribed,R.string.type_unsubscribed};
	static public int[] modeIcons = new int[]{R.drawable.kopeteavailable,R.drawable.kopeteavailable,R.drawable.presence_away,R.drawable.presence_away,R.drawable.presence_unknown};

	
	Context ctx;
	String[] typeNames;
	String[] modeNames;
	public String[] getTypeNames() {
		return typeNames;
	}
	public String[] getModeNames() {
		return modeNames;
	}
	
	
}
